//
//  QKActionSheet.h
//  Cat
//
//  Created by lushitong on 2019/1/1.
//  Copyright © 2019年 lushitong. All rights reserved.
//
#import <UIKit/UIKit.h>

@class QKActionSheet;

@protocol QKActionSheetDelegate <NSObject>

- (void)qkActionSheet:(QKActionSheet *)actionSheet clickedAtIndex:(NSInteger)index;

@end

@interface QKActionSheet : UIView

@property (nonatomic, assign) id<QKActionSheetDelegate> delegate;

@property (nonatomic, strong) UIColor *cancelColor;

- (instancetype)initWithButtons:(NSArray *)buttons;
- (void)showInView:(UIView *)view;
- (void)show;

+ (instancetype)showInView:(UIView *)view items:(NSArray *)itmes clickBlock:(void (^)(int index))clickBlock cancelBlock:(void (^)(void))cancelBlock;

@end
